﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using QuanLyThuVien.DAO;




namespace QuanLyThuVien.BUS
{
    class ChitietthanhlyBUS
    {

          public static DataGridView GetAllCTTL()
        {
            return ChitietthanhlyDAO.GetAllCTTL();
        }

        public static void Them(ChiTietThanhLy CTTL)
        {
            ChitietthanhlyDAO.Them(CTTL);
        }

        public static DataGridView GetCTTLonMSach(int MaSach, string LyDoThanhLy, string TenThuKho)
        {
            return ChitietthanhlyDAO.GetCTTLonMSach(MaSach, LyDoThanhLy ,TenThuKho);
        }

        public static void Xoa(ChiTietThanhLy CTTL)
        {
            ChitietthanhlyDAO.Xoa(CTTL);
        }

           public static DataGridView GetMaCTTL(int MaSach, int MaThanhLy, int MaLyDoThanhLy)
        {
            return ChitietthanhlyDAO.GetMaCTTL(MaSach, MaThanhLy, MaLyDoThanhLy);
        }

           public static void Sua(ChiTietThanhLy CTTL)
           {

               ChitietthanhlyDAO.Sua(CTTL);
           }
    }
}
